package com.vcourse.cloud.sms.api.feign;

import com.vcourse.cloud.sms.api.feign.fallback.SmsServiceFallBack;
import com.vcourse.commons.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Zengsh123
 * @date 2020-06-08 20:35
 */
@Service
@FeignClient(value = "cloud-oss", fallback = SmsServiceFallBack.class)
public interface SmsService {

    @GetMapping("send/{mobile}")
    R getCode(@PathVariable String mobile);

}
